.calendar-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--bs-border-color);
}

.calendar-title {
    color: #000;
    align-self: center;
    font-size: 1rem;
}

.calendar-button-group {
    .btn {
        line-height: 1;
        white-space: nowrap;
        cursor: pointer;
        background: #fff;
        border: 1px solid #dcdfe6;
        color: #606266;
        outline: none;
        margin: 0;
        transition: .3s;
        padding: 7px 15px;
        font-size: 12px;

        &:focus, &:hover {
            color: #409eff;
            border-color: #c6e2ff;
            background-color: #ecf5ff;
        }

        &:active {
            color: #3a8ee6;
            border-color: #3a8ee6;
            outline: none;
        }
    }
}

.calendar-table {
    table-layout: fixed;
    width: 100%;

    .calendar-day {
        box-sizing: border-box;
        padding: 8px;
        height: 85px;

        &:hover {
            cursor: pointer;
            background-color: #f2f8fe;
        }
    }


    thead {
        th {
            padding: 12px 0;
            color: #606266;
            font-weight: 400;
            text-align: center;
        }

        &:not(.is-range) td.next, &:not(.is-range) td.prev {
            color: #c0c4cc;
        }
    }

    tr {
        td {
            border-bottom: 1px solid var(--bs-border-color);
            border-right: 1px solid var(--bs-border-color);
            vertical-align: top;
            transition: background-color .2s ease;
            cursor: pointer;

            &:first-child {
                border-left: 1px solid var(--bs-border-color);
            }

            &.is-today {
                color: #409eff;
            }

            &.is-selected {
                background-color: #f2f8fe;
                color: #1989fa;
            }
        }

        &:first-child td {
            border-top: 1px solid var(--bs-border-color);
        }
    }
}

.calendar {
    .table-week {
        thead {
            tr:last-child {
                border-bottom: 2px solid #dee2e6;
            }
        }

        tbody {
            tr {
                text-align: center;
            }

            td {
                padding: 1rem 0;
                border-right: 0;
                border-left: 0;
                position: relative;
            }
        }

        .week-header {
            border-radius: 50%;
            border: 1px solid transparent;
            padding: 4px;
            display: inline-block;
            min-width: 52px;

            &.is-today {
                border: 1px solid #409eff;
                color: #409eff;
            }
        }
    }
}
